package com.jeecms.wicool.manager.orders;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.orders.Orders;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrdersMng {
    public Pagination getPage(String mobile,Integer disAddId,String orderCode, Integer shopId, String userName, Short status, Integer type, String startTime, String endTime,
                              int pageNo, int pageSize, CmsUser user);

    public Pagination getPageForChildren(String school,String classes,String userName,String mobile,Integer productCateId,Integer week,String startTime,String endTime,int pageNo, int pageSize, CmsUser user);
    
    public Orders findById(Integer id);

    public Orders update(Orders bean, Integer shopId, Integer userId);

    public List<Orders> getAll(CmsUser user);

    public List<Orders> getAllGroupBuyOrders(Integer groupBuyId);

    public Pagination getPage(Integer type, Integer activityId, int pageNo, int pageSize);

    public Pagination list(Short[] status, Integer disAddId, Date startTime, Date endTime, Integer typeId, Integer pageNo, Integer pageSize);

    public List<Orders> list(Short[] status, Integer disAddId, Date startTime, Date endTime, Integer typeId);
    
    public List<Orders> list(String startTime, String endTime, Integer typeId);
    
    public List<Orders> list(String startTime, String endTime);

	List<Map<String, Object>> getPageForExcel(String school, String classes,
			String userName, String mobile, Integer productCateId,
			Integer week, String startTime, String endTime, int pageNo,
			int pageSize, CmsUser user);
}